package transaction.imp;

import classification.PaymentClassification;
import classification.imp.SalariedClassification;
import schedule.PaymentSchedule;
import schedule.imp.MonthlySchedule;

public class AddSalariedEmployee extends AddEmployeeTransaction {
    private double salary;

    public AddSalariedEmployee(int empId, String name, String address, double salary) {
        super(empId, name, address);
        this.salary = salary;
    }

    @Override
    public PaymentClassification getPaymentClassification() {
        return new SalariedClassification(salary);
    }

    @Override
    public PaymentSchedule getPaymentSchedule() {
        return new MonthlySchedule();
    }


}
